import { postAction } from '@/api/manage'
import { getAction } from '@/api/manage'
// 通用
export const rd = '/basemgt-rd'
export const material = '/basemgt-material'
export const uploadUrl = `https://bzhz.jnbygroup.com/api/gateway/basemgt-rd/img/upload`

//数据字典子项
export const getDictChildList = (params) => postAction(`${rd}/dict/getDetails`, params)
//辅料库
export const getList = (params) => postAction(`${material}/accessories/page`, params)
export const getPriceList = (params) => postAction(`${material}/accessories/price/page`, params)
export const getDetail = (params) => postAction(`${material}/accessories/info`, params)
export const deleteMaterial = (params) => postAction(`${material}/accessories/delete`, params)
export const saveMaterial = (params) => postAction(`${material}/accessories/save`, params)
export const updateMaterial = (params) => postAction(`${material}/accessories/update`, params)
export const supplyList = (params) => postAction(`${material}/accessories/supply/list`, params)
export const getColorList = (params) => postAction(`${material}/accessories/color/list`, params)
export const seachColor = (params) => postAction(`${material}/material/color/search`, params)
export const seachPattern = (params) => postAction(`/imagemanage-center/pattern/search`, params)
export const seachPatternColor = (params) => postAction(`/imagemanage-center/pattern/color/search`, params)
export const seachSpecs = (params) => postAction(`${material}/material/specs/search`, params)
export const seachSupply = (params) => postAction(`${material}/material/supply/search`, params)
export const specsList = (params) => postAction(`${material}/accessories/specs/list`, params)
export const operation = (params) => postAction(`${material}/accessories/option`, params)
export const supplyPriceList = (params) => postAction(`${material}/accessories/supply/price/scheme/list`, params)
export const zipperCalc = (params) => postAction(`${material}/accessories/price/zipper/calculation`, params)


//调样单
export const retrievalsample = (params) => postAction(`${material}/accessories/retrievalsample/detail/page`, params)
export const retrievalsampleSave = (params) => postAction(`${material}/accessories/retrievalsample/save`, params)
export const retrievalsampleUpdate = (params) => postAction(`${material}/accessories/retrievalsample/update`, params)
export const retrievalsampleDelete = (params) => postAction(`${material}/accessories/retrievalsample/detail/delete`, params)
export const retrievalsampleInfo = (params) => postAction(`${material}/accessories/retrievalsample/info`, params)
export const retrievalsampleSubmit = (params) => postAction(`${material}/accessories/retrievalsample/submit`, params)


export const retrievalsampleAudit = (params) => postAction(`${material}/accessories/retrievalsample/audit`, params)
export const retrievalsampleAuditUpdate = (params) => postAction(`${material}/accessories/retrievalsample/audit/update`, params)
export const retrievalsampleSync = (params) => postAction(`${material}/accessories/retrievalsample/detail/sync`, params)

//面料档案
export const getSampleList = (params) => postAction(`${material}/sample-cloth/page`, params)
export const getSampleInfo = (params) => getAction(`${material}/sample-cloth/find`, params)
export const getSampleColorList = (params) => getAction(`${material}/sample-cloth/colorList`, params)
export const sampleColorAdd = (params) => postAction(`${material}/sample-cloth/colorAdd`, params)
export const sampleColorUpdate = (params) => postAction(`${material}/sample-cloth/colorUpdate`, params)
export const sampleColorDelete = (params) => postAction(`${material}/sample-cloth/colorDel`, params)
export const getSampleMinifiList = (params) => getAction(`${material}/sample-cloth/minificationList`, params)
export const sampleMinifiAdd = (params) => postAction(`${material}/sample-cloth/minificationAdd`, params)
export const sampleMinifiUpdate = (params) => postAction(`${material}/sample-cloth/minificationUpdate`, params)
export const sampleMinifiDelete = (params) => postAction(`${material}/sample-cloth/minificationDel`, params)
export const getSampleGroupList = (params) => getAction(`${material}/sample-cloth/groupList`, params)
export const sampleGroupAdd = (params) => postAction(`${material}/sample-cloth/groupAdd`, params)
export const sampleGroupUpdate = (params) => postAction(`${material}/sample-cloth/groupUpdate`, params)
export const sampleGroupDelete = (params) => postAction(`${material}/sample-cloth/groupDel`, params)
export const uploadFiles = (params) => postAction(`${material}/sample-upload-file/uploadFiles`, params)
export const getuploadFiles = (params) => postAction(`${material}/sample-upload-file/page`, params)
export const deleteFiles = (params) => getAction(`${material}/sample-upload-file/delete`, params)
export const sampleAdd = (params) => postAction(`${material}/sample-cloth/save`, params)
export const sampleUpdate = (params) => postAction(`${material}/sample-cloth/update`, params)
export const sampleStatus = (params) => postAction(`${material}/sample-cloth/update-status`, params)
export const dowmTem = (params) => getAction(`${material}/sample-cloth/export`, params)

export const getOrderList = (params) => postAction(`${material}/cloth-order/orderlist`, params)
export const ordervalidcolorlist = (params,data) => postAction(`${material}/cloth-order/ordervalidcolorlist`, params,data)
export const ordersave = (params) => postAction(`${material}/cloth-order/ordersave`, params)
export const orderupdate = (params) => postAction(`${material}/cloth-order/orderupdate`, params)
export const orderinfo = (params) => postAction(`${material}/cloth-order/orderinfo`, params)
export const orderSubmit = (params) => postAction(`${material}/cloth-order/submit`, params)
export const orderReject = (params) => postAction(`${material}/cloth-order/reject`, params)















